﻿@model ComicBookApp.Web.Models.ComicBookDetailVM


<div class="row">

    <form class="form-group" method="post">
        <input class="form-control" type="text" value="@Model.ComicBook.Title" name="Title" placeholder="Title..." />
        <input class="form-control" type="text" value="@Model.ComicBook.Synopsis" name="Synopsis" placeholder="Synopsis..." />
        <input class="form-control" type="text" value="@Model.ComicBook.ImageUrl" name="ImageUrl" placeholder="ImageUrl..." />
        <input type="hidden" value="@Model.ComicBook.Id" name="Id" />
        <input type="submit" value="Save" class="form-control" />
    </form>
    <form class="form-group" method="post" action="/ComicBook/Delete">
        <input type="hidden" value="@Model.ComicBook.Id" name="Id" />
        <input type="submit" value="Delete" class="form-control" />
    </form>
</div>
<div class="row">
    <table class="table">
        @foreach (var character in @Model.Characters)
        {
            <tr>
                <td>@character.Name</td>
                <td>
                    <form method="post" action="/Character/Delete">
                        <input type="hidden" value="@character.Id" name="id" />
                        <input type="submit" value="-Delete" class="btn btn-danger btn-sm" />
                    </form>
                </td>
            </tr>
        }

    </table>

</div>